<?xml version="1.0" encoding="UTF-8"?>
<!-- note: requires a web server running an XSLT processor -->
<html xst:version="0.2"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:xst  = "http://code.google.com/p/xstag/ns/2011/"
        xmlns:rfsh = "http://code.google.com/p/xstag/ns/example/refresh/"
        >
<xst:import href="refresh-lib/refresh.xstag"/>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title>Feed selector via AJAX</title>
  <rfsh:refresh>
    <rfsh:trigger>feed-view</rfsh:trigger>
    <rfsh:provider>feed-ajax-server.html</rfsh:provider>
    <rfsh:params>feed-uri=feed-select</rfsh:params>
    <rfsh:targets>feed-title, feed-list</rfsh:targets>
  </rfsh:refresh>
</head>
<body>
  <p>
    <form action="#">
      <label>Value</label><input type="text" value="client state"/>
      <label>Feed</label>
      <select id="feed-select">
        <option value="http://news.ycombinator.com/rss">Hacker News</option>
        <option value="http://www.reddit.com/.rss">reddit</option>
        <option value="http://feeds.feedburner.com/TechCrunch"
            selected="selected">TechCrunch</option>
      </select>
      <button id="feed-view" type="button">View</button>
    </form>
  </p>
  <h1 id="feed-title"/>
  <ul id="feed-list"/>
</body>
</html>
